let vm = new Vue({
    el: '.main-content',
    data: {
        qualification: {},
        id: '',
    },
    methods: {
        doUpdate:function (check) {
            this.qualification.check = check;
            this.qualification.address = null;
            axios({
                url: 'mapper/qualification/doUpdate',
                method: "put",
                data: this.qualification
            }).then(response => {
                if (response.data.success) {
                    parent.layer.success = response.data.success;
                    let index = parent.layer.getFrameIndex(window.name);
                    console.log(index);
                    parent.layer.close(index)
                } else {
                    layer.msg(response.data.msg)
                }
            }).catch(error => {
                layer.msg(error.message)
            })
        },
        selectOne: function () {
            axios({
                url: `mapper/qualification/selectOne/${this.id}`
            }).then(response => {
                this.qualification = response.data.obj;
            })
        }
    },
    created: function () {
        this.id = parent.layer.obj.id;
        this.selectOne();
    }

});